package com.yuyou.fn.settlement.service;

import com.github.wens.framework.service.ISuperService;
import com.pingplusplus.model.Refund;
import com.yuyou.fn.settlement.entity.PayOrder;
import com.yuyou.fn.settlement.entity.RefundOrder;

import java.math.BigDecimal;

/**
 *
 * RefundOrder 表数据服务层接口
 *
 */
public interface IRefundOrderService extends ISuperService<RefundOrder,Long> {

    Refund prepareRefund(Long refundOrderId,Long refundObjectId,Integer refundType,Long busId, Long payOrderId, BigDecimal amount,String description,String chargeId);

    Refund createRefundByPayOrderId(Long payOrderId,String description,Integer refundType);

    RefundOrder createRefundOrderByPayOrder(PayOrder payOrder,String description,Integer refundType);

    RefundOrder findByRefundObjectId(Long refundObjectId);

    RefundOrder findByRefundId(String  refundId);

}